import requests
from likeshop_api_project.api.login_api import login_model
from likeshop_api_project.base.myBase import Tools


class accountLog_model(Tools):
    path = '/api/user/accountLog'

    # 发送查询任务接口
    def accountLog_action(self, source, type, hd):
        accountLog_data = {
            "source": source,
            "type": type
        }

        accountLog = self.huihua.get(url=self.hosturl + self.path, params=accountLog_data,headers=hd)

        return accountLog.json()



# s = requests.session()
# login = login_model(huihua=s)
# msg = login.login_action(account='17612345678', pwd='admin123', client='4')
# print(msg)
# tokena = msg['data']['token']
# hd = {
#     'token': tokena
# }
# print(hd)
#
# accountLog = accountLog_model(huihua=s)
# msg = accountLog.accountLog_action(source=1, type=1,hd=hd)
# print(msg)